import request from '@/utils/request'

// 查询申请材料明细列表
export function listFilesDetail(query) {
  return request({
    url: '/system/filesDetail/list',
    method: 'get',
    params: query
  })
}

// 查询申请材料明细详细
export function getFilesDetail(applyDetailId) {
  return request({
    url: '/system/filesDetail/' + applyDetailId,
    method: 'get'
  })
}

// 新增申请材料明细
export function addFilesDetail(data) {
  return request({
    url: '/system/filesDetail',
    method: 'post',
    data: data
  })
}

// 修改申请材料明细
export function updateFilesDetail(data) {
  return request({
    url: '/system/filesDetail',
    method: 'put',
    data: data
  })
}

// 删除申请材料明细
export function delFilesDetail(applyDetailId) {
  return request({
    url: '/system/filesDetail/' + applyDetailId,
    method: 'delete'
  })
}
